package ch4;


import java.util.Scanner;
public class Ex13 {

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("Enter a letter:");
        String alpha = input.nextLine();
        char ch = alpha.charAt(0);
        if(ch == 'A' || ch == 'E' || ch == 'I' || ch == 'O' || ch == 'U'
                || ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u' )
            System.out.println(ch + " is a vowel");
        else if(Character.isLetter(ch))
            System.out.println(ch + " is a consonant");
        else
            System.out.println(ch + " is a invalid input");
    }
}
